jQuery(document).ready(function($){

    chargeForm = $('#charge-form-content');
    chargeForm.validate({
        rules:{
            'edit-card-number' : 'required'
        },
        invalidHandler:function(event,validator){

        }
    });

    var cardNumber = $('#edit-card-number');
    cardNumber.focus();
    cardNumber.keypress(function(keyCode){
        if(keyCode == 13){
            chargeForm.submit();
        }
    });


});